/* -*- C++ -*- */

//=============================================================================
/*
* @author Feloweria <380374483@qq.com>
* Copyright (C) Feloweria
*
* $ID 2014-05-14 11:24:02 AM
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details
*
* You should have received a copy of the GNU General Public License
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
*
* @version 1.0
*/
//=============================================================================


FELOWRIA_BEGIN

inline int64 Socket::Handle() const 
{
	return sock;
}

inline OutputStream* Socket::GetReadStream() 
{
	return &recv_buffer;
}

inline InputStream* Socket::GetWriteStream() 
{
	return &send_buffer;
}


inline bool Socket::Connected() const 
{
	return connected;
}

inline bool Socket::Disconnected() const
{
	return disconnected;
}

FELOWRIA_END
